//
//  MeCollectionCell.m
//  FKGW
//
//  Created by song ce on 2017/2/17.
//  Copyright © 2017年 song ce. All rights reserved.
//

#import "MeCollectionCell.h"

@implementation MeCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.countImageV.hidden = YES;
    self.countLabel.hidden = YES;
    // Initialization code
}

-(void)setModel:(MeCollectionModel *)model
{
    _model = model;
    self.imgeV.image = [UIImage imageNamed:_model.iamgeName];
    self.imgeV.contentMode = UIViewContentModeScaleAspectFit;
    self.titleLabel.text = _model.title;
    
    if([_model.messgeCount isEqualToString:@"0"]||!_model.messgeCount.length){
        self.countLabel.hidden = YES;
        self.countImageV.hidden =YES;
    }else{
        self.countLabel.hidden = NO;
        self.countImageV.hidden =NO;
        self.countLabel.text = _model.messgeCount;
      
    }
    
}

@end
